Promise.all([
    new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve({name: 'why', age: 10});
        }, 2000);
    }),
    new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve({name: 'what', age: 8});
        })
    }, 1000)
]).then(results => {
    console.log(results);
})